package com.amazon.shop.bean.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Date;

import com.amazon.shop.bean.dto.BaseGroup.*;
/**
 * 创建时间：10:49 2021/3/2
 *
 * @author lzj
 * @since JDK 1.8.0_171
 * 类说明：
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ---------------------------------------------------------*
 */
@Data
public class UserFrom extends BaseDTO{

    @NotNull(groups = {update.class,del.class},message="id 必传")
    private Integer id;
    /**
     * 昵称
     */
    @NotEmpty(groups = {add.class},message="nickname 昵称必传")
    private String nickname;

    /**
     * 账号
     */
    @NotEmpty(groups = {add.class},message="username 账号")
    private String username;

    /**
     * 密码
     */
    @NotEmpty(groups = {add.class},message="password 密码")
    private String password;

    /**
     * 邮箱
     */
    @NotEmpty(groups = {add.class},message="email 邮箱")
    private String email;

    /**
     * 是否禁用
     */
    private Integer disable;

    /**
     * 是否管理员
     */
    private Integer ismanager;
}
